package com.lry.basic.juc;

import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.concurrent.DelayQueue;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/9/10
 */
public class TestDelayQueue {
    public static void main(String[] args) throws InterruptedException {

//        DelayQueue queue = new DelayQueue();
//        OrderDelivery del1 = new OrderDelivery("123456","21");
//        queue.add(del1);
//        OrderDelivery del2 = new OrderDelivery("1234567","212");
//        queue.add(del2);
//        while(queue.size()>0){
//            del1 = (OrderDelivery) queue.take();
//            System.out.println(del1);
//        }
    }
}
